﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApproveRequisition.aspx.cs" Inherits="PresentationLayer.ApproveRequisition" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link type="text/css" rel="stylesheet" href="/Content/css/bootstrap.css" /> 
    <style>
         .Hide { display:none; }

    </style>
    <script>
       
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <h1>View Requisition for Approval</h1>
      <div class="form-group">
                    <label class="control-label col-sm-4" for="ddlEmployee">Employee Name:</label> 
                    <div class="col-sm-7">
                        <asp:DropDownList ID="ddlEmployee" CssClass="form-control" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlEmployee_SelectedIndexChanged" ></asp:DropDownList>
                    </div>
                    
        </div>
        <asp:GridView ID="gvRequisition" runat="server" AutoGenerateColumns="False" EmptyDataText="Currently, there is no requisition to approve" OnRowCommand="gvRequisition_RowCommand">
            <Columns>
                    <asp:BoundField DataField="ReqID" HeaderText="Requisition ID">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                    <asp:BoundField DataField="RequestedBy" HeaderText="Employee Code" HeaderStyle-CssClass="Hide" ItemStyle-CssClass="Hide">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                    <asp:BoundField DataField="EmployeeName" HeaderText="Employee Name">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                     <asp:BoundField DataField="ReqDate" HeaderText="Requested Date" >
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                  <asp:BoundField DataField="ApprovalStatus" HeaderText="Status">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                  <asp:buttonfield buttontype="Button"  commandname="Select" headertext="Detail" text="View Detail"/>
            </Columns>
                
        </asp:GridView>
    </div>

    </form>
</body>
</html>
